package design.factory.abstrac;

import design.factory.method.AbstractFactory;
import design.factory.method.HwFactory;
import design.factory.method.IphoneFactory;

/**
 * <p>
 * abstract test
 * </P>
 *
 * @author dingwen
 * @date 2021.10.22 17:07
 */
public class AbstractTest {
    public static void main(String[] args) {
        AbstractFactory hwFactory = new HwFactory();
        AbstractFactory iphoneFactory = new IphoneFactory();
        hwFactory.makePhone().make();
        hwFactory.makeComputer().make();
        iphoneFactory.makeComputer().make();
        iphoneFactory.makePhone().make();
    }
}
